# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: team/gnome <ablocorrea@hotmail.com>
pkgname=gsettings-desktop-schemas
pkgver=45.0
pkgrel=0
pkgdesc="A collection of GSettings schemas"
url="https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas"
arch="noarch"
license="LGPL-2.0-or-later"
depends_dev="$pkgname=$pkgver-r$pkgrel"
makedepends="glib-dev gobject-introspection-dev meson"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/sources/gsettings-desktop-schemas/${pkgver%.*}/gsettings-desktop-schemas-$pkgver.tar.xz"

build() {
	abuild-meson . output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
b3e00164aa47cf19b53bf8fd9cd9526c0a4f3d770e8c77953dba0bdf49b85d56f87f45254d18260e7a7b0ec7e24fc049fde503a1ea93e87946dbbd53b5dfc0f2  gsettings-desktop-schemas-45.0.tar.xz
"
